package com.mxpio.erp.common.equipment.service;

import com.mxpio.erp.common.enums.EquipmentEnums;
import com.mxpio.erp.common.equipment.entity.EquipmentCalibration;
import com.mxpioframework.common.vo.Result;
import com.mxpioframework.system.service.BaseService;

/**
 * @Description: 设备检定
 * @Author: qiubo
 * @Date: 2023-12-18
 * @Version: v1.0
 */
public interface EquipmentCalibrationService extends BaseService<EquipmentCalibration> {
    /**
     * 更改执行状态
     * @param equipmentCalibration
     * @param improgress
     * @return
     */
    Result<EquipmentCalibration> updateCalStatus(EquipmentCalibration equipmentCalibration, EquipmentEnums.Calibration improgress);

    /**
     * 点击开始时更改实际开始时间
     * @param equipmentCalibration
     * @param improgress
     * @return
     */
    Result<EquipmentCalibration> updateTime(EquipmentCalibration equipmentCalibration, EquipmentEnums.Calibration improgress);

//    /**
//     * 完成检定并修改状态和完成时间
//     * @param equipmentCalibration
//     * @param improgress
//     * @return
//     */
//    Result<EquipmentCalibration> completeTime(EquipmentCalibration equipmentCalibration, EquipmentEnums.Calibration improgress);

    void listExecute(EquipmentCalibration equipmentCalibration);

    /**
     * 完成检定单
     * @param equipmentCalibration
     */
    Result<?> finish(EquipmentCalibration equipmentCalibration);

    Result<?>  batchCompletion(String calCodes,EquipmentCalibration equipmentCalibration);
}

